package com.scexample.exception;

/**
 * @program: merchantbuilddesign
 * @description: 基础异常类
 * @author: 少男
 * @create: 2021-02-26 14:42
 **/
public class BaseException extends RuntimeException {

    private static final long serialVersionUID = 39462588065227333L;
    private String code;

    private String msg;

    protected BaseException() {
    }

    protected BaseException(String code, String msg) {
        super(code+"="+msg);
        this.code = code;
        this.msg = msg;
    }

    protected BaseException(String code, String msg,Throwable e) {
        super(msg,e);
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
